package com.song.tools.export.api.request;

import com.song.tools.export.api.core.StatusEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 导出任务更新请求体
 *
 * @author song tools
 * @since 2024-07-05
 */
@Data
@Schema(title = "ExportTaskUpdateRequest", description = "导出任务更新请求体")
public class ExportTaskUpdateRequest implements Serializable {

    @Serial
    private static final long serialVersionUID = -6089639489342657920L;

    /**
     * 状态
     */
    @Schema(title = "status", description = "状态", requiredMode = Schema.RequiredMode.REQUIRED)
    private StatusEnum status;

    /**
     * 租户ID
     */
    @Schema(title = "customerId", description = "租户ID", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long customerId;

    /**
     * 导入任务ID
     */
    @Schema(title = "id", description = "id", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long id;

    /**
     * 文件地址
     */
    @Schema(title = "fileUrl", description = "文件地址")
    private String fileUrl;

    /**
     * 失败原因
     */
    @Schema(title = "failReason", description = "失败原因")
    private String failReason;
}
